package cn.clouds234.liteflow.comp;

import cn.clouds234.liteflow.context.MainContext;
import com.yomahub.liteflow.core.NodeComponent;

/**
 * @author wyf
 * @date 2025/3/3 16:32
 */
public class Acomp extends NodeComponent {
    @Override
    public void process() throws Exception {
        MainContext context = this.getContextBean(MainContext.class);
        context.sendMsg("Acomp");
    }

    @Override
    public boolean isAccess() {
        MainContext context = this.getContextBean(MainContext.class);
        return context.getChain().contains(this.getNodeId());
    }
}
